import Index from '@/views/index.vue'
import UserCenter from '@/components/left/UserCenter.vue';
import ArticleList from '@/components/content/article/ArticleList.vue';
import ArticleContent from '@/components/content/article/ArticleContent.vue';
import PoetryList from '@/components/content/poetry/PoetryList.vue'
import PoetryContent from '@/components/content/poetry/PoetryContent.vue'
import NovelList from '@/components/content/novel/NovelList.vue'
import NovelContent from '@/components/content/novel/NovelContent.vue'
import Footer from '@/components/footer/Footer.vue'
import DefaultRight from '@/components/right/DefaultRight.vue';
import OAuthLoginWaiting from '@/views/oauthLoginWaiting.vue';


export const routes = [{
		path: '/',
		name: 'index',
		meta: {
			title: '南风怡人'
		},
		component: Index,
		redirect: '/article/articleList',
		children: [{
				path: '/article/articleList',
				name: 'articleList',
				components: {
					content: ArticleList,
					left: UserCenter,
					right: DefaultRight,
					footer: Footer
				},
				alias: '/',
				meta: {
					title: '南风怡人'
				}
			},
			{
				path: '/article/articleContent',
				name: 'articleContent',
				components: {
					content: ArticleContent,
					left: UserCenter,
					right: DefaultRight,
					footer: Footer
				},
				meta: {
					title: '南风怡人 | 愿为理想而非生活 '
				}
			},
			{
				path: '/poetry/poetryList',
				name: 'poetryList',
				components: {
					content: PoetryList,
					left: UserCenter,
					right: DefaultRight,
					footer: Footer
				},
				meta: {
					title: '南风怡人 | 温其如玉 '
				}
			},
			{
				path: '/poetry/poetryContent',
				name: 'poetryContent',
				components: {
					content: PoetryContent,
					left: UserCenter,
					right: DefaultRight,
					footer: Footer
				},
				meta: {
					title: '南风怡人 | 言念君子 | 温其如玉 '
				}
			},
			{
				path: '/novel/novelList',
				name: 'novelList',
				components: {
					content: NovelList,
					left: UserCenter,
					right: DefaultRight,
					footer: Footer
				},
				meta: {
					title: '南风怡人 | 笑忘书集 '
				}
			},
			{
				path: '/novel/novelContent',
				name: 'novelContent',
				components: {
					content: NovelContent,
					left: UserCenter,
					right: DefaultRight,
					footer: Footer
				},
				meta: {
					title: '南风怡人 | 笑忘书集 | 闲人造作 '
				}
			},
		]
	},
	{
		path: '/waiting',
		name: 'waiting',
		component: OAuthLoginWaiting,
		meta: {
			title: '请稍后... '
		}
	}
]
export default routes
